compareDocumentPosition

public abstract Set<DocumentPosition> compareDocumentPosition(Node otherNode)

Compares position of the current node against another node in a DOM tree.

Return

a set of the positions of the node specified by the otherNode parameter relates to the position of the current node

Since

7.5

Parameters

otherNode

the node to be compared to the current node

Throws

when this node is closed